﻿using System;
using Basmus.Web.Topology;

namespace Basmus.Values.Web
{
    internal class TargetTypeInfo
    {
        public Type TargetType { get; private set; }
        public IApplication Application { get; private set; }
        public string VirtualPath { get; private set; }
        public bool HasPhysicalUrl { get { return VirtualPath != null; } }

        public TargetTypeInfo(Type targetType, IApplication application, string virtualPath)
        {
            TargetType = targetType;
            Application = application;
            VirtualPath = virtualPath;
        }
    }
}